﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ZX.Web.UI.Controls.DefineEditForm" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>数据编辑</title>
    <link href="/Styles/form.common.css" rel="stylesheet" />
    <script src="/SFramework/miniui/swfupload/swfupload.js" type="text/javascript"></script>
    <script type="text/javascript">
        //主表实体对象
        <% =UIEntityJson %>

        var id = "<%=this.GetStringFromQueryString("id","")%>";
       
        var action = id == "" ? "insert" : "update";
        var dept_id = "<%=this.GetStringFromQueryString("dept_id","")%>";

        var parent_id = "<%=this.GetStringFromQueryString("parent_id","")%>";
        var group_id = "<%=this.GetStringFromQueryString("group_id","")%>";
        var del_list = [];
        //用于指定父类的
        if (typeof (instance["parent_id"]) != "undefined" & parent_id != "") {
            instance["parent_id"] = parent_id;
        }
        //用于指定组别ID
        if (typeof (instance["group_id"]) != "undefined" & group_id != "") {
            instance["group_id"] = parent_id;
        }
        //用于指定部门的ID
        if (typeof (instance["dept_id"]) != "undefined" & dept_id != "") {
            instance["dept_id"] = dept_id;
        }
        var const_EditEntity = "<%=EditEntity%>";
        var const_functionId = "<%=GetStringFromQueryString("functionid","")%>";
       
    </script>
</head>
<script src="/SFramework/boot.js" type="text/javascript"></script>
<body>
    <form id="form1" runat="server">
        <%=UIHtml %>
    </form>
    <div class="toolbar">
        <button id="btnSave">保存</button>
        <button id="btnCancel">取消</button>
    </div>
</body>
<script src="../../scripts/app/edit.common.js"  type="text/javascript"></script>
<script src="../../Scripts/common/jquery.data.js"  type="text/javascript"></script>
<script src="../../Scripts/common/jquery.action.js"  type="text/javascript"></script>
<script  type="text/javascript">
    <%=Edit_self_script %>
</script>
<script src="../../scripts/app/edit/<%=EditEntity %>.edit.js?v=0.1"  type="text/javascript"></script>
</html>
